export class btc_api extends plugin {
    constructor() {
        super({
            name: 'btc_api', 
            dsc: 'BTC_API',         
            event: 'message.group', 
            priority: -1, 
            rule: [
                {
                    reg: '^#?(随机)(帅哥|小哥哥)(视频)$',
                    fnc: 'sgsp'
                },
                {
                    reg: '^#?(随机)(龙图)$',
                    fnc: 'sglt'
                },
            ]
        })
    }
    async sgsp() {
        let sgspurl = `https://www.mnapi.cn/sg.php?type=video`
        this.reply([segment.video(sgspurl)])
        return true
    }
    async sglt() {
        let sglturl = `https://api.lolimi.cn/API/longt/l.php`
        this.reply([segment.image(sglturl)])
        return true
    }
}
